using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ImageAnalystTools._Math
{
    /// <summary>
    /// <para>Divide</para>
    /// <para>Divides the values of two rasters on a cell-by-cell basis.</para>
    /// <para>逐个像元划分两个栅格的值。</para>
    /// </summary>    
    [DisplayName("Divide")]
    public class Divide : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Divide()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_raster_or_constant1">
        /// <para>Input raster or constant value 1</para>
        /// <para><xdoc>
        ///   <para>The input whose values will be divided by the second input.</para>
        ///   <para>A number can be used as an input for this parameter, provided a raster is specified for the other parameter. To specify a number for both inputs, the cell size and extent must first be set in the environment.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>其值将除以第二个输入的输入。</para>
        ///   <para>如果为其他参数指定了栅格，则可以使用数字作为此参数的输入。要为两个输入指定一个数字，必须首先在环境中设置像元大小和范围。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_in_raster_or_constant2">
        /// <para>Input raster or constant value 2</para>
        /// <para><xdoc>
        ///   <para>The input whose values the first input are to be divided by.</para>
        ///   <para>A number can be used as an input for this parameter, provided a raster is specified for the other parameter. To specify a number for both inputs, the cell size and extent must first be set in the environment.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>第一个输入的值要除以的输入。</para>
        ///   <para>如果为其他参数指定了栅格，则可以使用数字作为此参数的输入。要为两个输入指定一个数字，必须首先在环境中设置像元大小和范围。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster.</para>
        ///   <para>The cell values are the quotient of the first input raster (dividend) divided by the second input (divisor).</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出栅格。</para>
        ///   <para>像元值是第一个输入栅格（被除数）除以第二个输入（除数）的商。</para>
        /// </xdoc></para>
        /// </param>
        public Divide(object _in_raster_or_constant1, object _in_raster_or_constant2, object _out_raster)
        {
            this._in_raster_or_constant1 = _in_raster_or_constant1;
            this._in_raster_or_constant2 = _in_raster_or_constant2;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "Image Analyst Tools";

        public override string ToolName => "Divide";

        public override string CallName => "ia.Divide";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "compression", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "scratchWorkspace", "snapRaster", "tileSize", "workspace"];

        public override object[] ParameterInfo => [_in_raster_or_constant1, _in_raster_or_constant2, _out_raster];

        /// <summary>
        /// <para>Input raster or constant value 1</para>
        /// <para><xdoc>
        ///   <para>The input whose values will be divided by the second input.</para>
        ///   <para>A number can be used as an input for this parameter, provided a raster is specified for the other parameter. To specify a number for both inputs, the cell size and extent must first be set in the environment.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>其值将除以第二个输入的输入。</para>
        ///   <para>如果为其他参数指定了栅格，则可以使用数字作为此参数的输入。要为两个输入指定一个数字，必须首先在环境中设置像元大小和范围。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input raster or constant value 1")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_raster_or_constant1 { get; set; }


        /// <summary>
        /// <para>Input raster or constant value 2</para>
        /// <para><xdoc>
        ///   <para>The input whose values the first input are to be divided by.</para>
        ///   <para>A number can be used as an input for this parameter, provided a raster is specified for the other parameter. To specify a number for both inputs, the cell size and extent must first be set in the environment.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>第一个输入的值要除以的输入。</para>
        ///   <para>如果为其他参数指定了栅格，则可以使用数字作为此参数的输入。要为两个输入指定一个数字，必须首先在环境中设置像元大小和范围。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input raster or constant value 2")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_raster_or_constant2 { get; set; }


        /// <summary>
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster.</para>
        ///   <para>The cell values are the quotient of the first input raster (dividend) divided by the second input (divisor).</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出栅格。</para>
        ///   <para>像元值是第一个输入栅格（被除数）除以第二个输入（除数）的商。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        public Divide SetEnv(int? autoCommit = null, object cellSize = null, object compression = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, compression: compression, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, workspace: workspace);
            return this;
        }

    }

}